home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Commands / PLetterSpace.cpp < prev    next >
C/C++ Source or Header  |  1996-08-15  |  1KB  |  39 lines

  1. /*
  2.  *--- PLetterSpace.cpp ----------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:19 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PLetterSpace.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PLetterSpace.h"
  12. #include "PGetLetterSpace.h"
  13. #include "PRequestBuf.h"
  14. #include "PCommand.h"
  15.  
  16. const size_t REQUEST_SIZE = 6;
  17.  
  18. PLetterSpace::PLetterSpace(short dLetterMin, short dLetterDesired, short dLetterMax)
  19. {
  20.     char * temp[REQUEST_SIZE];
  21.     PRequestBuf request(temp);
  22.  
  23.     request << dLetterMin << dLetterDesired << dLetterMax;
  24.             
  25.     PCommand command(pm_letterspace, request);
  26. }
  27.  
  28. PLetterSpace::PLetterSpace(const PGetLetterSpace& letterSpace)
  29. {
  30.     char * temp[REQUEST_SIZE];
  31.     PRequestBuf request(temp);
  32.  
  33.     request << letterSpace.dLetterMin << letterSpace.dLetterDesired << letterSpace.dLetterMax;
  34.             
  35.     PCommand command(pm_letterspace, request);
  36. }
  37.  
  38. // end of PLetterSpace.cpp
  39.